<template>
  <div>
    <vxe-table :data="dataList">
      <vxe-column
          :key="item.name+'-'+index"
          v-for="(item,index) in columns"
          :title="item.name"></vxe-column>
    </vxe-table>
  </div>
</template>
<script>
export default {
  props: {
    dataList: {
      type: Array,
      default: () => []
    },
    columns: {
      type: Array,
      default: () => []
    }
  },
}
</script>